package com.example.demo.util;

import lombok.Data;

@Data
public class MyException extends Exception {

    private Result result;
    private ResultCode resultCode;

    public MyException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public MyException(Result result) {
        this.result = result;
    }
}
